<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- <meta http-equiv="X-UA-Compatible" content="ie=edge"> -->
    <script src="http://localhost:8080/socket.io/socket.io.js" charset="utf-8"></script>
<!-- 相当于调用node_modeules/socket.io/lib/client.js -->
<script>
let sock=io.connect('ws://localhost:8080/');
/*
    sock有2个常用的属性
    sock.emit    发送
    sock.on      接收
*/
document.onclick=function(){
    sock.emit('a',12,5)

}
</script>
    <title>Document</title>
</head>
<body>
    
</body>
